package com.huli.controller;

import com.huli.domain.NursingProject;
import com.huli.service.NursingProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("Details")
public class ServiceDetailsController {
    @Autowired
    private NursingProjectService nursingProjectService;
//    @RequestMapping("findByOrgName")
//    public NursingProject findByOrgName(Integer id){
//        return nursingProjectService.findByOrgName(id);
//    }
  //详情里的机构名称和地址
    @RequestMapping("findById")
    public NursingProject findById(Integer id){
        return nursingProjectService.findById(id);
    }
    //详情里的适宜人群
    @RequestMapping("findTargetPopulation")
    public NursingProject findTargetPopulation(Integer id){
        return nursingProjectService.findByid(id);
    }
    //详情里护理费价格
    @RequestMapping("findByPrice")
    public NursingProject findByPrice(Integer id){
        return nursingProjectService.findByPrice(id);
    }

}
